package com.wp.rcm.service.impl;

import com.wp.rcm.mapper.CustomerMapper;
import com.wp.rcm.pojo.Customer;
import com.wp.rcm.service.CustomerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {

    @Resource
    private CustomerMapper customerMapper;

    @Override
    public List<Customer> findAll(String custName, String custRegion, Integer offset, Integer pageSize) {
        return customerMapper.findAll(custName,custRegion,offset,pageSize);
    }


    @Override
    public int count(String custName, String custRegion) {
        return customerMapper.count(custName,custRegion);
    }

    @Override
    public int update(Customer customer) {
        return 0;
    }

    @Override
    public int delete(String custNo) {
        return 0;
    }

}
